package twu.shuhbam.library;


import org.junit.Test;
import twu.shubham.library.movieRecord;

import static org.junit.Assert.assertEquals;

public class movieRecordTests {


       movieRecord movieName = new movieRecord("Sholay",1975,"R.Sippy",7);
       movieRecord movieName1 = new movieRecord("",1975,"R.Sippy",7);

    @Test
    public void withoutMovieNameMovieWillNotBePrinted() throws Exception {


        assertEquals(0, movieName1.moviePrint(1));
    }

    @Test
    public void withMovieNameMovieWillBePrinted() throws Exception {


        assertEquals(1, movieName.moviePrint(1));
    }
}
